import { Entity, PrimaryGeneratedColumn } from "typeorm";
import { Code, Desc, Province, City, Digdit, DateTime, Text, CreateDate, UpdateDate } from "../utils";

@Entity({
    name: 'ks_device_app'
})
export class KsDeviceAccount {

    @PrimaryGeneratedColumn()
    id: number;

    @Code({ comment: '快手和快手极速' })
    package_name: string;

    @Code({ comment: '快手ID' })
    ksid: string;

    @Code({ comment: '用户ID' })
    user_id: string;

    @Code({ comment: '账号名' })
    name: string;

    @Desc({ comment: '简介' })
    desc: string;

    @Province({ default: '', comment: '省份' })
    province: string;

    @City({ default: '', comment: '城市' })
    city: string;

    @Digdit({ comment: '年龄' })
    age: number;

    @Code({ comment: '性别' })
    sex: string;

    @Code({ comment: '账号状态 1正常 2异常' })
    status: string;

    @Digdit({ comment: '快币余额' })
    count: number;

    @DateTime({ comment: '注册时间' })
    register_time: Date;

    @Text({ comment: '标签-养号用' })
    keyword: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}
